<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:appcommons="http://www.fabsoft.cesupa.br/appcommons">

    <rich:modalPanel styleClass="window"
                     onshow="setFocusAtElement('exit-confirmation-window-options:cancel-button')"
                     id="exit-confirmation-window" minWidth="550">
        <f:facet name="header">
            <h:panelGroup>
                <h:outputText value="#{texts.ExitSystemConfirmation}"></h:outputText>
            </h:panelGroup>
        </f:facet>
        <f:facet name="controls">
            <h:panelGroup>
                <h:form>
                    <h:commandLink id="close-exit-window-link"
                                   title="#{tooltipmessages.CloseWindow}">
                        <h:graphicImage alt="#{words.CloseWindow}"
                                        value="/infrastructure/images/icons/close-16x16.gif"/>
                        <rich:componentControl for="exitConfirmationWindow"
                                               attachTo="close-exit-window-link"
                                               operation="hide" event="onclick"/>
                    </h:commandLink>
                </h:form>
            </h:panelGroup>
        </f:facet>
        <h:graphicImage url="/infrastructure/images/icons/door-64x64.gif"
                        class="window-main-icon"/>
        <div class="window-text">
            <span class="window-main-message">
                #{texts.ExitWindowMessage}
            </span>
            <br /><br />
            #{texts.WantExitSystem}
            <br/><br/>
        </div>
        <br />
        <div class="buttons" style="float:right;">
            <h:form id="exit-confirmation-window-options">
                <h:commandLink id="exit-button"
                               styleClass="positive primarybutton" action="#{sessionBean.logout}"
                               alt="#{altmessages.CloseWindow}"
                               title="#{tooltipmessages.ExitSystem}">
                    #{words.Exit}
                </h:commandLink>

                <h:commandLink id="cancel-button" title="#{tooltipmessages.CancelOperation}"
                               alt="#{altmessages.CloseWindow}" styleClass="negative">
                    #{words.Cancel}
                    <rich:componentControl for="exit-confirmation-window"
                                           attachTo="exit-confirmation-window-options:cancel-button"
                                           operation="hide" event="onclick"/>
                </h:commandLink>
            </h:form>
        </div>
    </rich:modalPanel>
</ui:composition>